package littlepicture.service;

import java.util.Date;

import littlepicture.pojo.Record;
import littlepicture.pojo.LpProject;

/**
 * @author byang
 */

public interface MainService {
	/**
	 * Get Little Picture Project from DataDase    
	 * 
	 * @param currentDate
	 * @return
	 */
	public LpProject getLpProject(Date currentDate);
	
	/**
	 * Create work record for person based on name, date and activity model
	 * (maybe name should be replaced by employeeId)
	 * 
	 * @param personName
	 * @param date
	 * @param activity
	 * @return recordId
	 */
	public long addWorkRecordForPerson(int employeeId, Date date, Record activity);
	
	/**
	 * Delete work record based on id(recordId column in the table "workrecord")
	 * 
	 * @param workRecordId
	 */
	public void deleteWorkRecordById(long workRecordId);
	
	/**
	 * Update work record based on id, activity
	 * 	
	 * @param workRecordId
	 * @param activity
	 */
	public void updateWorkRecord(Record activity);
}
